<template>
  <div class="admin-layout">
    <!-- 顶部导航栏 -->
    <AdminHeader />
    
    <div class="admin-container">
      <!-- 左侧导航栏 -->
      <div class="admin-sidebar-wrapper">
        <AdminLeft />
      </div>
      
      <!-- 主内容区域 -->
      <main class="admin-main">
        <div class="main-content">
          <router-view />
        </div>
      </main>
    </div>
  </div>
</template>

<script setup>
import AdminHeader from '@/components/AdminHeader.vue'
import AdminLeft from '@/components/AdminLeft.vue'

</script>

<style scoped>
.admin-layout {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.admin-container {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.admin-sidebar-wrapper {
  flex: 0 0 280px;
}

.admin-main {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  margin-left: 0px;
}

.main-content {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  min-height: 100%;
}

</style>

